"""
@name : tb_com
@author : FanMY_71
@projectname: Selling-Idea
@Time: 2022/8/28-20:20
"""
from model import db
import datetime

class tb_com(db.Model):
    com_id = db.Column(db.Integer,primary_key=True,autoincrement=True)
    article_id = db.Column(db.ForeignKey("articles.article_id"),primary_key=True)
    user_id = db.Column(db.ForeignKey("users.user_id"))
    father_id = db.Column(db.ForeignKey("users.user_id"),default=None)
    comment = db.Column(db.Text, nullable=False)
    comment_CreateAt = db.Column(db.DATETIME, default=datetime.datetime.now)

